package algorithms.linked;

import java.util.LinkedList;

public class LinkedListTest {
    public static void main(String[] args) {
//        LinkedList<Integer> list = new LinkedList<>();
//        for (int i =0;i<20;i++)
//            list.add(i);
//        list.toPrint();
//        System.out.println("长度:"+list.size);
//        boolean contain = list.contain(3);
//        System.out.println("链表中是否包含3："+contain);
        LinkedList<Integer> linkedList = new LinkedList<>();
        for (int i =0;i<20;i++)
            linkedList.add(i);
        linkedList.stream().forEach(System.out::println);

    }
}
